﻿<%@ Page Language="C#" MasterPageFile="~/Theme/main.Master" AutoEventWireup="true" CodeBehind="Catalogue.aspx.cs" Inherits="XPMVC.Catalogue" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <div runat="server" visible="true" id="catalogueTable">
        <div>
            The auction is running from
            <asp:Literal ID="auctionStart" runat="server"></asp:Literal>
            to
            <asp:Literal ID="auctionEnd" runat="server"></asp:Literal>
        </div>
        <table cellspacing="5" cellpadding="5">
            <asp:Repeater runat="server" ID="catalogue">
                <ItemTemplate>
                    <tr style="vertical-align: top">
                        <td>
                            <div style="border-radius: 15px; overflow: hidden; height: 198px; border: 2px solid #808080">
                                <img src="<%#Eval("picture") %>" style="width: 200px; height: 200px;" />
                            </div>
                        </td>
                        <td>
                            <div>
                                Name:
                            <div class="catalogue-info"><%#Eval("name") %></div>
                            </div>
                            <div>
                                Author:
                            <div class="catalogue-info"><%#Eval("author") %></div>
                            </div>
                            <div>
                                Location:
                            <div class="catalogue-info"><%#Eval("location") %></div>
                            </div>
                            <div>
                                Description:
                            <div class="catalogue-info"><%#Eval("description") %></div>
                            </div>
                            <div>
                                Current Bid:
                            <div class="catalogue-info" runat="server"><%#Eval("current_bid") %></div>
                            </div>
                            <div>
                                <a href="Items.aspx?ID=<%#Eval("ID") %>" class="textbox">Click here to bid</a>
                            </div>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <div id="auctionError" runat="server" visible="false">&nbsp;</div>
</asp:Content>
